<?php

    /**
     * This file is part of the Intelligencer package.
     * For the full copyright and license, please view the LICENSE
     * file that was distributed with this source code.
     * 
     * @author         Roman Drapeko <roman.drapeko@gmail.com>
     * @copyright      Roman Drapeko <roman.drapeko@gmail.com>, 2009 - present
     */

    /**
     * This class is a wrapper for a Pear Logger.
     * @author drapeko
     */
    class itPearLogger implements itLoggerI {
        protected $logger = null;
        
        /**
         * Accepts the PEAR logger.
         * @param Log $logger
         */
        public function __construct($logger) {
            $this->logger = $logger;
        }
        
        /**
         * (non-PHPdoc)
         * @see Intelligencer/LibUtil/Logger/itLoggerI#emerg($str)
         */
        public function emerg($str) {
            $this->logger->emerg($str);
        }
        
        /**
         * (non-PHPdoc)
         * @see Intelligencer/LibUtil/Logger/itLoggerI#crit($str)
         */
        public function crit($str) {
            $this->logger->crit($str);
        }
        
        /**
         * (non-PHPdoc)
         * @see Intelligencer/LibUtil/Logger/itLoggerI#err($str)
         */
        public function err($str) {
            $this->logger->err($str);
        }
        
        /**
         * (non-PHPdoc)
         * @see Intelligencer/LibUtil/Logger/itLoggerI#warning($str)
         */
        public function warning($str) {
            $this->logger->warning($str);
        }
        
        /**
         * (non-PHPdoc)
         * @see Intelligencer/LibUtil/Logger/itLoggerI#notice($str)
         */
        public function notice($str) {
            $this->logger->notice($str);
        }
        
        /**
         * (non-PHPdoc)
         * @see Intelligencer/LibUtil/Logger/itLoggerI#info($str)
         */
        public function info($str) {
            $this->logger->info($str);
        }
        
        /**
         * (non-PHPdoc)
         * @see Intelligencer/LibUtil/Logger/itLoggerI#debug($str)
         */
        public function debug($str) {
            $this->logger->debug($str);
        }
    }
    
?>